home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 398 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: mail2news.demon.co.uk!beachyhd.demon.co.uk
  2. From: Adam@beachyhd.demon.co.uk
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Top line of LISTVIEW
  5. Date: 07 Jan 96 12:22:49 GMT
  6. Organization: Beachy Head - UK
  7. Message-ID: <30f00f72@beachyhd.demon.co.uk>
  8. X-NNTP-Posting-Host: beachyhd.demon.co.uk
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-GateSoftware: AmiGate 1.6 (13.11.95)
  13. MMDF-Warning:  Parse error in original version of preceding line at relay-4.mail.demon.net
  14. X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!beachyhd.demon.co.uk
  15.  
  16. Hi all,
  17.  
  18. In a program that I'm writing I have a GadTools LISTVIEW gadget. Now my program
  19. -- at any time -- needs to be able to tell which line number (0 to whatever) is
  20. being displayed at the very top of the listview.
  21.  
  22. For V39+ this is no problem, as I can use the GT_GetGadgetAttrs() function,
  23. with GTLV_Top as the tagID. This function doesn't exist before V39, though, so
  24. I was wondering if anyone had a 'dirty' way I could get this data for when my
  25. program is running on V36 - V38 machines.
  26.  
  27. It doesn't actually matter that it would be a 'hack', as all future version of
  28. the OS would be using the GT_GetGadgetAttrs() method. Only the older versions
  29. of the OS (which aren't going to change) would use the 'hack' method, so there
  30. won't be any compatilibity problems..
  31.  
  32. My thanks in advance!
  33.  
  34. .\dam.          [TEAM AMIGA]          //\ ad32@brighton.ac.uk \\/
  35.  
  36.